home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / lex.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  1KB  |  39 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  3. <MODE>
  4.     <PROPS>
  5.         <PROPERTY NAME="commentStart" VALUE="/*" />
  6.         <PROPERTY NAME="commentEnd" VALUE="*/" />
  7.         <PROPERTY NAME="lineComment" VALUE="//" />
  8.         <PROPERTY NAME="wordBreakChars" VALUE=",+-=<>/?^&*" />
  9.  
  10.         <!-- Auto indent -->
  11.         <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
  12.         <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
  13.         <PROPERTY NAME="unalignedOpenBrackets" VALUE="(" />
  14.         <PROPERTY NAME="unalignedCloseBrackets" VALUE=")" />
  15.         <PROPERTY NAME="indentNextLine"
  16.             VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
  17.         <PROPERTY NAME="unindentThisLine"
  18.             VALUE="^.*(default:\s*|case.*:.*)$" />
  19.         <PROPERTY NAME="electricKeys" VALUE=":" />
  20.     </PROPS>
  21.     <RULES IGNORE_CASE="FALSE">
  22.     <IMPORT DELEGATE="c::MAIN"/>
  23.     <SEQ TYPE="OPERATOR">%%</SEQ>
  24.     <SEQ TYPE="OPERATOR">%{</SEQ>
  25.     <SEQ TYPE="OPERATOR">}%</SEQ>
  26.     <SEQ TYPE="KEYWORD1">%option</SEQ>
  27.     <SEQ TYPE="KEYWORD1">%top</SEQ>
  28.     <SEQ TYPE="KEYWORD1">%x</SEQ>
  29.     <SEQ TYPE="KEYWORD4">ECHO</SEQ>
  30.     <SEQ TYPE="KEYWORD4">BEGIN</SEQ>
  31.     <SEQ TYPE="KEYWORD4">REJECT</SEQ>
  32.     
  33.     <SEQ TYPE="LITERAL2">YY_CURRENT_BUFFER</SEQ>
  34.     <SEQ TYPE="LITERAL2">YY_START</SEQ>
  35.     
  36.     <SEQ_REGEXP HASH_CHAR="<" TYPE="KEYWORD2"><\w+></SEQ_REGEXP>
  37.     </RULES>
  38. </MODE>
  39.